package com.redstar.HappyRefresh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.redstar.HappyRefresh.pojo.Permission;

import java.util.List;
import java.util.Map;

public interface PermissionService extends IService<Permission> {

    Map<String, Object> initMenu(Long userId); // 初始化菜单，根据当期用户获取菜单

    List<Permission> treeSelect(); // 返回非按钮的权限树

    void removeMenu(Long id); // 删除以id为根节点的所有权限
}
